//
//  Day33Button.m
//  CarHome
//
//  Created by 小伍 on 14-9-19.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import "Day33Button.h"

@implementation Day33Button
- (void)dealloc
{
    [_name33 release];
    _name33 = nil;
    [super dealloc];
}

- (instancetype)init
{
    if (self = [super init]) {
      
        self.name33 = _name33;
      
    }
    return self;
}

#pragma mark -
#pragma mark NSCoding协议
///将属性以一种顺序进行排列组合,归档或者叫序列化
- (void)encodeWithCoder:(NSCoder *)aCoder
{
   
    [aCoder encodeObject:self.name33 forKey:@"name33"];
    [aCoder encodeObject:self.value forKey:@"value"];
    [aCoder encodeObject:self.type forKey:@"type"];
    
}
/// 将获得的组合数据分别放置到各自的属性里面,解档或者反序列化
- (id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.name33 = [aDecoder decodeObjectForKey:@"name33"];
        self.value = [aDecoder decodeObjectForKey:@"value"];
        self.type = [aDecoder decodeObjectForKey:@"type"];
           }
    return self;
}


@end
